/*
package com.example.application.views.test;

import com.example.application.views.admin.AdminView;
import com.example.application.views.main.MainView;
import com.example.application.views.pet.Client;
import com.example.application.views.pet.PetView;
import com.example.application.views.regiest.PetOwner;
import com.example.page.PageComponent;
import com.vaadin.flow.component.button.Button;
import com.vaadin.flow.component.grid.Grid;
import com.vaadin.flow.component.html.Div;
import com.vaadin.flow.component.orderedlayout.HorizontalLayout;
import com.vaadin.flow.router.PageTitle;
import com.vaadin.flow.router.Route;
import org.apache.tomcat.jni.Address;

import java.util.ArrayList;
import java.util.List;

@Route(value = "test", layout = MainView.class)
@PageTitle("测试分页")
public class PageTestView extends PageComponent {
    public PageTestView(){
        super(1, 40, 200, 5);
        List<Client> PetOwnerList = new ArrayList<>();

        PetOwnerList.add(createClient(4957, "https://randomuser.me/api/portraits/women/42.jpg", "Amarachi Nkechi", 47427.0,
                "Success", "2019-05-09"));
        PetOwnerList.add(createClient(4957, "https://randomuser.me/api/portraits/women/42.jpg", "Amarachi Nkechi", 47427.0,
                "Success", "2019-05-09"));
        PetOwnerList.add(createClient(4957, "https://randomuser.me/api/portraits/women/42.jpg", "Amarachi Nkechi", 47427.0,
                "Success", "2019-05-09"));
        PetOwnerList.add(createClient(4957, "https://randomuser.me/api/portraits/women/42.jpg", "Amarachi Nkechi", 47427.0,
                "Success", "2019-05-09"));
        PetOwnerList.add(createClient(4957, "https://randomuser.me/api/portraits/women/42.jpg", "Amarachi Nkechi", 47427.0,
                "Success", "2019-05-09"));
        PetOwnerList.add(createClient(4957, "https://randomuser.me/api/portraits/women/42.jpg", "Amarachi Nkechi", 47427.0,
                "Success", "2019-05-09"));
        PetOwnerList.add(createClient(4957, "https://randomuser.me/api/portraits/women/42.jpg", "Amarachi Nkechi", 47427.0,
                "Success", "2019-05-09"));
        PetOwnerList.add(createClient(4957, "https://randomuser.me/api/portraits/women/42.jpg", "Amarachi Nkechi", 47427.0,
                "Success", "2019-05-09"));
        PetOwnerList.add(createClient(4957, "https://randomuser.me/api/portraits/women/42.jpg", "Amarachi Nkechi", 47427.0,
                "Success", "2019-05-09"));
        PetOwnerList.add(createClient(4957, "https://randomuser.me/api/portraits/women/42.jpg", "Amarachi Nkechi", 47427.0,
                "Success", "2019-05-09"));
        PetOwnerList.add(createClient(4957, "https://randomuser.me/api/portraits/women/42.jpg", "Amarachi Nkechi", 47427.0,
                "Success", "2019-05-09"));
        PetOwnerList.add(createClient(4957, "https://randomuser.me/api/portraits/women/42.jpg", "Amarachi Nkechi", 47427.0,
                "Success", "2019-05-09"));
        PetOwnerList.add(createClient(4957, "https://randomuser.me/api/portraits/women/42.jpg", "Amarachi Nkechi", 47427.0,
                "Success", "2019-05-09"));
        PetOwnerList.add(createClient(4957, "https://randomuser.me/api/portraits/women/42.jpg", "Amarachi Nkechi", 47427.0,
                "Success", "2019-05-09"));
        PetOwnerList.add(createClient(4957, "https://randomuser.me/api/portraits/women/42.jpg", "Amarachi Nkechi", 47427.0,
                "Success", "2019-05-09"));
        PetOwnerList.add(createClient(4957, "https://randomuser.me/api/portraits/women/42.jpg", "Amarachi Nkechi", 47427.0,
                "Success", "2019-05-09"));



        Grid<Client> grid = new Grid<>(Client.class);
        grid.setItems(PetOwnerList);

        grid.removeColumnByKey("id");

// The Grid<>(PetOwner.class) sorts the properties and in order to
// reorder the properties we use the 'setColumns' method.
        grid.setColumns("img", "client", "amount", "status",
                "date");
        this.components.add(grid);
        this.init();

//        PageComponent pc = new PageComponent(1, 4, 20, 5);
//        this.add(pc);
    }

    @Override
    protected void pageNext() {

    }

    @Override
    protected void pagePrevious() {

    }

    @Override
    protected void gotoPage() {

    }

    @Override
    protected void firstPage() {

    }

    @Override
    protected void lastPage() {

    }

    @Override
    protected void selectPage() {

    }

    private Client createClient(int id, String img, String client, double amount, String status, String date) {
        Client c = new Client();
        c.setId(id);
        c.setImg(img);
        c.setClient(client);
        c.setAmount(amount);
        c.setStatus(status);
        c.setDate(date);

        return c;
    }
}
*/
